import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;

public class D2 {
    @Test
    void t1() {
        String s = "\t\u0085aaa";
        System.out.println(s);
        System.out.println(s.trim());
        System.out.println(StringUtils.trim(s));
        System.out.println(StringUtils.strip(s));

        System.out.println(Character.isWhitespace('\u00A0'));
        System.out.println(Character.isSpaceChar('\u0085'));
        String s1 = "X\u00A0X\rX\nX\tX\u2007X\u0085X";
        System.out.println(s1.replaceAll("\\p{javaSpaceChar}", "_"));
        System.out.println(s1.replaceAll("[\\s\\p{Z}\\u0085]", "_"));

    }
}
